package ru.nsu.fit.iconveyor.log.console;

import ru.nsu.fit.iconveyor.engine.ConveyorExecutionObserver;

import java.util.Collection;

public class ConsoleLoggingConveyorExecutionObserver implements ConveyorExecutionObserver {
    @Override
    public void onNodeExecuted(String nodeId, Collection<String> affectedInputs, Collection<String> affectedOutputs) {
        System.out.println(String.format("node with id=%s executed; affected inputs: %s; affected outputs: %s", nodeId, String.valueOf(affectedInputs), String.valueOf(affectedOutputs)));
    }
}
